


<div class="modal fade" id="fileUpload_modal" tabindex="-1" role="dialog" aria-labelledby="wsw" aria-hidden="true" data-backdrop="static" data-keyboard="false">
	
	<div class="modal-dialog">
		
		<div class="modal-content">
			
			<div class="modal-header">
        		
        		<h4 class="modal-title" id="myModalLabel">Aggiungi un File</h4>
      		</div>
      		
      		<div class="modal-body">
      			
      			
      				<input type="hidden" name="interviewId" value="${interviewId}" class="btn btn-default" id="interviewId">
      			
      				<input name="file" type="file" class="btn btn-default" id="fileUtil" required>
						<p class="help-block">
							Seleziona il file da inserire 
						</p>
					<div class="input-group">	
					<span class="input-group-addon"><i class="fa fa-folder-open-o fa-lg fa-fw"></i></span>
							<g:select 
								class="form-control " 
								id="documentType" 
								name="documentType.id" 
								from="${com.macrosolution.exdebito.DocType.findAllByDocumentCategory(1)}" 
								optionKey="id" 
								required="" 
								value="${fileDocumentInstance?.documentType?.id}"
								optionValue="documentType" 
							/>
					
					</div>
					<p class="help-block">
							Seleziona la cartella di destinazione
					</p>
					<br>
					<textarea id="comments" name="comments" class="form-control" placeholder="Inserisci un commento al file" rows="3" maxlength="150"></textarea>
					<%--			progress--%>
			<div class="row">
				<div class="col col-md-12" id="progressBox" style="display:none">
					
					<div class="bar-holder">
						<div class="progress left">
							<div id="myprogress" class="progress-bar bg-color-redLight" role="progressbar" style="width: 0%" >43</div>
						</div>
					</div>
				
				</div>
			
			</div>
<%--			progress--%>
					
					<div class="modal-footer">
				        <button type="button" id="upcloseBtn" class="btn btn-default" data-dismiss="modal">Chiudi</button>
				        <button type="button" id="btnUpload" data-loading-text="Loading..." onclick="uploadAj()" class="btn btn-primary" >Upload</button>
<%--				        <g:submitButton name="uploadInterviewFiles" class="btn btn-primary"  value="${message(code: 'Upload', default: 'Upload')}" />--%>
				    </div>
			
<%--				</g:form>--%>
      				
      				
      		
      		</div>
		
		</div>
	
	</div>

</div>
